import 'card_item.dart';

Map<String, List<CardItem>> cardItemsConfig = {
  '首页': [
    CardItem(title: 'single', content: '基础 layout', key: 'single'),
    CardItem(title: 'single_row_layout', content: '简单横向布局', key: 'row_layout'),
    CardItem(
      title: 'single_column_layout',
      content: '简单纵向布局',
      key: 'column_layout',
    ),
    CardItem(
      title: 'listtitle_layout',
      content: '简单列表布局',
      key: 'listtitle_layout',
    ),
    CardItem(
      title: 'listview_row_layout',
      content: '简单横向列表布局',
      key: 'listview_row_layout',
    ),
    CardItem(
      title: 'listview_builder_layout',
      content: 'listview builder 布局',
      key: 'listview_builder_layout',
    ),
    CardItem(title: '网格布局', content: 'GridView网格布局示例', key: 'gridview_layout'),
  ],
  '设置': [
    CardItem(title: '设置卡片1', content: '这是设置页面的第一张卡片的内容。', key: 'setting-card1'),
  ],
  '项目实战': [
    CardItem(title: '实战项目一', content: '第一个实战项目', key: 'column_layout_project'),
    CardItem(title: '实战项目二', content: '简历实战', key: 'resume_project'),
  ],
};

List<CardItem> getCardItemsByCategory(String category) {
  return cardItemsConfig[category] ?? [];
}
